package D1203_02;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Exam2 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入字符串");
        String word=sc.nextLine();
        String a[]=word.split(",");
        List grade=new ArrayList();
        for (int i=0;i<a.length;i++){
            System.out.println("请输入该科目成绩：");
            double number=sc.nextDouble();
            grade.add(number);
        }
        for (int i=0;i<a.length;i++){
            System.out.println(a[i]+"="+grade.get(i));
        }

    }

    }

